package com.example.lenovo.retrofit_test.http;


import com.example.lenovo.retrofit_test.bean.AppInfo;
import com.example.lenovo.retrofit_test.bean.BaseBean;
import com.example.lenovo.retrofit_test.bean.PageBean;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * 访问网络的接口
 * @Author LXY
 * Created at 2017/7/27 11:41
 */

public interface ApiService {

//    @GET("featured")
//    public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query("p") String jsonParam);

      public static final String BASE_URL = "http://112.124.22.238:8081/course_api/cniaoplay/";

    // url路径
    // http://112.124.22.238:8081/course_api/cniaoplay/featured2?p={%27page%27:0}
      @GET("featured2")
      public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query("p") String jsonParam);
}
